package com.cn.kabalifeuser.ui.service.adapter;

import android.content.ClipData;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.cn.kabalifeuser.R;
import com.cn.kabalifeuser.ui.integral.bean.TypeListBean;
import com.cn.kabalifeuser.ui.my.bean.CooperationSreviceListBean;
import com.cn.kabalifeuser.utils.GlideUtil;

import java.util.List;

/**
 * Created by 晓林 on 2020/9/11.
 * function:
 */
public class TypeRightBusinessAdapter extends BaseQuickAdapter<CooperationSreviceListBean.ResultBean.ChildrenBean, BaseViewHolder> {

    public TypeRightBusinessAdapter(int layoutResId, @Nullable List<CooperationSreviceListBean.ResultBean.ChildrenBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, final CooperationSreviceListBean.ResultBean.ChildrenBean item) {
        helper.setText(R.id.tv_name, item.getTitle());
        GlideUtil.ImageLoad(this.mContext, item.getIcon(), helper.getView(R.id.thumb));
    }


}
